package com.ymttest.common.entitie;

import java.math.BigDecimal;
import java.util.List;

import com.ymttest.common.enums.OrderTypeEnum;



/**
 * 订单信息
 */
public class Order {
    private static final long serialVersionUID = -4856453107059071845L;

    // 订单类型
    private OrderTypeEnum orderType;

    // 是否是商户
    private boolean isMerchant;

    // 留言
    private String leaveWord;

    // 运费
    private BigDecimal freight;

    // 是否全额付款
    private boolean isPaidFull;

    // 收获地址
    private String address;

    // 收获地址邮编
    private String postCode;

    // 收件人姓名
    private String receiveName;

    // 收件人手机号
    private String phone;

    // 收件人电话
    private String telephone;

    // 自动取消小时数(说明：下单后在规定时间未付款，订单自动取消)
    private BigDecimal autoCancelOrderHours;

    // 订单里的商品项
    private List<OrderItem> orderItems;

    public OrderTypeEnum getOrderType() {
        return orderType;
    }

    public void setOrderType(OrderTypeEnum orderType) {
        this.orderType = orderType;
    }

    public boolean isMerchant() {
        return isMerchant;
    }

    public void setMerchant(boolean isMerchant) {
        this.isMerchant = isMerchant;
    }

    public String getLeaveWord() {
        return leaveWord;
    }

    public void setLeaveWord(String leaveWord) {
        this.leaveWord = leaveWord;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public boolean isPaidFull() {
        return isPaidFull;
    }

    public void setPaidFull(boolean isPaidFull) {
        this.isPaidFull = isPaidFull;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public BigDecimal getAutoCancelOrderHours() {
        return autoCancelOrderHours;
    }

    public void setAutoCancelOrderHours(BigDecimal autoCancelOrderHours) {
        this.autoCancelOrderHours = autoCancelOrderHours;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }


}
